const getters = {
    GET_MENU: (state: any) => state.sidebarMenu,
    GET_CURRENTMENU: (state: any) => state.currentMenu,
    getCrumbList: (state: any) => state.crumbList,
    getIsSidebarNavCollapse: (state: any) => state.isSidebarNavCollapse,
    getUser: (state: any) => {

        return state.userInfo;
    },
    getPermissionlist: (state: any) => {

        return state.permissionlist;
    },
    getBtnPer: (state: any) => {

        return state.btnPre;
    },
    getToken: (state: any) => {
        if (state.token == null) {
            return '';
        } else {
            return state.token
        }
    }
}
export default getters